package com.infore.statisticsAndAlarm.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.infore.statisticsAndAlarm.entity.KnowledgeKeyWorld;
import java.lang.String;
import java.util.List;

@Repository
public interface IKeyWorldRepository
		extends JpaRepository<KnowledgeKeyWorld, String>, JpaSpecificationExecutor<KnowledgeKeyWorld> {

	// 通过单个名字查询
	KnowledgeKeyWorld findOneByKeyWorldName(String keyworldname);

	// 查询全部并按次数排序
	List<KnowledgeKeyWorld> findByOrderByKeyWorldNumDesc();
}
